﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Bastanteo.Dominio.BastanteoCombinacion>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Create
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Agregar combinación</h2>
    <% Html.EnableClientValidation(); %>

    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>

        <fieldset>
            <legend>Campos</legend>
            
            <!-- 
            <div class="editor-label">
                < %: Html.LabelFor(model => model.CodigoBastanteoCombinacion) %>
            </div>
            <div class="editor-field">
                < %: Html.TextBoxFor(model => model.CodigoBastanteoCombinacion) %>
                < %: Html.ValidationMessageFor(model => model.CodigoBastanteoCombinacion) %>
            </div>
            -->

            <div class="editor-label">
                Bastanteo:
            </div>
            <div class="editor-field"> 
                <%: Html.DropDownList("Bastanteo", (IEnumerable<SelectListItem>)TempData["bastanteos"]) %>
            </div>

            <div class="editor-label">
                En conjunto con grupo:
            </div>
            <div class="editor-field"> 
                <%: Html.DropDownList("Grupo", (IEnumerable<SelectListItem>)TempData["grupos"]) %>
            </div>
            
            <p>
                <input type="submit" value="Create" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%: Html.ActionLink("Regresar al listado", "Index") %>
    </div>

</asp:Content>

